package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.NoticeLog;
import com.zx.map.dao.model.NoticeLogExample;

public interface NoticeLogDao {

	/**
	 * 新增
	 *
	 * @param noticeLog
	 * @return
	 * @throws DataAccessException
	 */
	public String add(NoticeLog noticeLog) throws DataAccessException;

	/**
	 * 更新
	 *
	 * @param noticeLog
	 * @return
	 * @throws DataAccessException
	 */
	public String update(NoticeLog noticeLog) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param noticeLog
	 * @throws DataAccessException
	 */
	public void delete(NoticeLog noticeLog) throws DataAccessException;

	/**
	 * 根据Model查找List
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<NoticeLog> getListByExample(NoticeLogExample example) throws DataAccessException;

	/**
     * 分页查询
     *
     * @param pageSize
     * @param pageBegin
     * @param example
     * @return
     * @throws DataAccessException
     */
    public List<NoticeLog> getPageByExample(int pageSize, int pageBegin,
											NoticeLogExample example) throws DataAccessException;
    /**
	 * 查找条数
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public int countByExample(NoticeLogExample example) throws DataAccessException;


}